package org.catspaw.cherubim.persistence.spring.jdbc;

import org.springframework.jdbc.core.RowMapper;

public class RowMapperFactory {

	private static final RowMapper nameTrimmedArrayRowMapper = new NameTrimmedArrayRowMapper();
	private static final RowMapper nameTrimmedMapRowMapper   = new NameTrimmedMapRowMapper();

	public static RowMapper getNameTrimmedArrayRowMapper() {
		return nameTrimmedArrayRowMapper;
	}

	public static RowMapper getNameTrimmedMapRowMapper() {
		return nameTrimmedMapRowMapper;
	}

	public static RowMapper getNameTrimmedBeanRowMapper(Class beanClass) {
		return new NameTrimmedBeanRowMapper(beanClass);
	}
}
